home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-08-21 | 3.8 KB | 86 lines | [TEXT/R*ch] |
- GMSDK 1.0b1 Readme
-
- The Gandreas Music System is a way to use QuickTime 2.0 to play music
- without having to do gory, QuickTime code. It is designed to play music
- from resources in the background. The interface is simple - only 6 calls
- (one to init, one to free up, one to play, one to call during idle, one
- to call during supsend, and one to call during resume), and wraps up all
- the Tune Component calls. You also don't have to include Movies, QuickTimeComponents,
- Components, Files, etc... just the one interface file (GMSIntf.p or GMSIntf.h).
- Link in with GandreasMusicSystem.o and away you go.
-
-
- These calls are as follows:
- /* Call this first, if it returns true, then music playing is possible */
- pascal Boolean GMSInit();
-
- /* Call this to temporarily stop playback of the current music. Should */
- /* be called on suspend events */
- pascal void GMSPause();
-
- /* Call this to resume playback of the current music. Call on resume */
- /* events */
- pascal void GMSResume();
-
- /* This will clean up everything, release components, etc... */
- pascal void GMSQuit();
-
- /* This is the actual routine to play a 'Musi' resource generated from */
- /* Midi2Musi. It will lock it down for you - don't unlock or release */
- /* the resource until you are done playing. If you want to stop playing */
- /* the current music and not play anything, pass NIL in */
- pascal void GMSPlay (Handle h);
-
- /* Call this routine during your idle proc - it checks to see if the */
- /* music is done playing, and if so, causes it to repeat (don't call */
- /* this if you don't want your background music to repeat) */
- pascal void GMSIdle();
-
-
- To create the resource for GMS to play, you can either use a music editor
- (that isn't completed yet, making this option difficult), or you can convert
- an existing MIDI file. To do the latter option, simply drop the MIDI file
- on the application "Midi2Musi", select what instruments you want, and it
- will start playing it (to make sure everything worked). Click the mouse to
- quit, and it will leave a "Musi" resource on the clipboard to paste into your
- resource file with ResEdit.
-
- The format of this "Musi" resource is documented in a forthcoming MacTech article.
- Check the newstands for the October issue. This library is also based on the
- techniques described there - see the article for a more in depth covering of
- playing music with QuickTime 2.0
-
- If you decide to use GMS in a product (be it commercial, shareware, freeware,
- whatever), there is only two things you have to do:
- 1) In the "About box" (or wherever you have credits & copyrights), add the
- line "Gandreas Music System © 1994, Glenn Andreas, All Rights Reserved."
- 2) When you finish the product, send a registerable copy to me at:
- Glenn Andreas
- 171 83rd Ave NE #304
- Fridley MN 55432-6822
- By registerable, I mean a real version, not a demo. If the product is
- shareware, you need to mail it to me on floppy (not via email - if I wanted to
- have to go through the hassle to download it, I could have done that anyway).
- And if the shareware version needs to be "registered" to unlock some features,
- include the code (as appropriate).
-
- So there you are. Everything you need to add background music to your latest
- project, at the cost of one line in an about box, and one finished product.
- It is, however, up to you to handle the licensing of "QuickTime™ 2.0" and the
- "QuickTime™ Musical Instruments"....
-
- Glenn Andreas
- gandreas@aol.com
-
- This work, including the GandreasMusicSystem.o library, the GMSIntf.p & GMSIntf.h
- header files, and the "Midi2Musi" application are:
- Copyright © 1994, Glenn Andreas. All Rights Reserved.
-
- You may freely distribute this package, so long as all pieces are included
- and nothing is changed/omitted/added/or in any other way modified.
-
-
- Version History:
- 1.0b2 - First public release
- Expanded this documentation
- 1.0b1 - First external release